package com.eos.freeect.common.service.impl;

import java.util.List;

import javax.annotation.Resource;

import com.eos.freeect.common.dao.LoginDao;
import com.eos.freeect.common.model.Announcement;
import com.eos.freeect.common.model.Login;
import com.eos.freeect.common.service.LoginService;

public class LoginServiceImpl implements LoginService {
	private LoginDao loginDao;
	
	@Resource
	public void setLoginDao(LoginDao loginDao)
	{
		this.loginDao = loginDao;
	}
	
	public LoginDao getLoginDao()
	{
		return loginDao;
	}
	
	public List<Login> checkPWD(Login login)
	{
		return loginDao.checkPWD(login);
	}
	
	public List<Announcement> getAnnouncementListMarquee()
	{
		return loginDao.getAnnouncementListMarquee();
	}
	
	public List<Announcement> getAnnouncementList()
	{
		return loginDao.getAnnouncementList();
	}	
	
	public void updateUserInfo(Login user)
	{
		loginDao.updateUserInfo(user);
	}
}
